import request from '@/utils/request'
import login_request from '../utils/login-request'

export function login(params) {
  return login_request({
    url: 'user/logins/login-up',
    method: 'POST',
    data: params
  })
}

export function register(params) {
  return login_request({
    url: 'user/logins/sign-up',
    method: 'POST',
    data: params
  })
}

export function sendSms(params) {
  return login_request({
    url: '/sendSms/send',
    method: 'POST',
    data: params
  })
}

export function forget(params) {
  return request({
    url: 'user/logins/forget',
    method: 'POST',
    data: params
  })
}

export function logout() {
  return request({
    url: '/login/logout',
    method: 'GET'
  })
}
